package com.newworld.dmsapp2;

import com.pgyersdk.crash.PgyCrashManager;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Window;

public class InitActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.activity_init);
		//蒲公英初始化
		PgyCrashManager.register(this);
		
		new Thread(new Runnable() {
			@Override
			public void run() {
				try {
					Thread.sleep(500);
				} catch (InterruptedException e) {
					e.printStackTrace();
				}
				Intent intent = new Intent(InitActivity.this,
						LoginActivity.class);
				startActivity(intent);
			}
		}).start();

	}

	@Override
	protected void onStop() {
		super.onStop();
		this.finish();
	}

	@Override
	protected void onResume() {
		super.onResume();
		// JPushInterface.onResume(this);
		// MobclickAgent.onResume(this);

	}

	@Override
	protected void onPause() {
		super.onPause();
		// JPushInterface.onPause(this);
		// MobclickAgent.onPause(this);

	}
}
